<?php
include "Redniao.php";
$HK红鸟1 = new Redniao();
include "redbird_wangluo.php";
$网络操作1 = new redbird_wangluo();
$网络操作2 = new redbird_wangluo();
include "redbird_string.php";
include "redbird_convert.php";
	$网络操作1->设置header("Cache-Control: no-cache");
	$网络操作1->设置cookie("TestCookie","TestValue",3600);
	$网络操作2->设置header("Cache-Control: no-cache");
	$网络操作2->设置cookie("TestCookie","TestValue",3600);
	if($网络操作1->取提交方式() == "POST" ){
		$地址= $网络操作1->取post数据("url");
		if($地址 == "" ){
			echo "xiaoao_sp(v=no)";
		}else{
			$源码=$HK红鸟1->取网页源码(删全部空($地址));
			$开头=寻找文本( $源码,"mac_url=unescape(",0);
			$结尾=寻找文本( $源码,"; </script>",$开头);
			$视频地址;
			$结果;
			$视频地址 = 到整数(删全部空(到文本($结尾)))-到整数(删全部空(到文本($开头)));
			$结果=取文本中间($源码,$开头,$视频地址);
			echo $结果;
		}
	}else{
		$地址1= $网络操作1->取get数据("url");
		if($地址1 == "" ){
			echo "xiaoao_sp(v=no1)";
		}else{
			$源码1=$HK红鸟1->取网页源码(删全部空($地址1));
			$开头1=寻找文本( $源码1,"mac_name='",0);
			$结尾1=寻找文本( $源码1,"',mac_from=",$开头1);
			$视频地址1;
			$结果1;
			$视频地址1 = 到整数(删全部空(到文本($结尾1)))-到整数(删全部空(到文本($开头1)));
			$结果1=取文本中间($源码1,$开头1,$视频地址1);
			echo $结果1;
		}
	}
?>